<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;

//短路由
Route::any ('mobile_shouye','mobile/Index/index');
Route::any ('mobile_gengxin','mobile/Index/gengxin');
Route::any ('mobile_paihang','mobile/Index/paihang');
Route::any ('mobile_fenlei','mobile/Index/fenlei');
Route::any ('mobile_xiangqing','mobile/Index/xiangqing');
Route::any ('mobile_user','mobile/Index/user');
Route::any ('mobile_user_vip','mobile/Index/user_vip');
Route::any ('mobile_xiugai','mobile/Index/xiugai');
Route::any ('mobile_shangchuan','mobile/Index/shangchuan');
Route::any ('callapi','api/Index/callapi');
Route::any ('luyou','api/Index/luyou');




// 资源路由 7个路由

Route::resource('bookmarkers', 'home/Book');
Route::resource('guanggaos', 'admin/Guanggao');



//Route::get('users/show/:id', 'rest/User/readpage');
Route::resource('users', 'admin/User');
Route::resource('roles', 'admin/Role');
Route::resource('accesss', 'admin/Access');
//Route::resource('cartoons/edit/:id', 'admin/Cartoon/editd');
Route::resource('cartoons', 'admin/Cartoon');
Route::resource('classifys', 'admin/Classify');
Route::resource('mulus', 'admin/Mulu');
Route::resource('zans', 'home/Detail');


return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

];
